package com.lin.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.gulimall.common.utils.PageUtils;
import com.lin.gulimall.common.utils.R;
import com.lin.gulimall.product.entity.CategoryEntity;
import com.lin.gulimall.product.vo.Catalogs2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiaolin
 * @email 3088386588@qq.com
 * @date 2022-05-08 11:22:21
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    boolean removeMenusByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateCasecade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categories();

    Map<String, List<Catalogs2Vo>> getCatalogJson();
}

